package com.eshop.modules.shop.service.dto;

import java.util.Date;
import java.io.Serializable;

public class MaterialDto implements Serializable
{
    private String id;
    private Date createTime;
    private String createId;
    private String type;
    private String groupId;
    private String name;
    private String url;
    
    public String getId() {
        return this.id;
    }
    
    public Date getCreateTime() {
        return this.createTime;
    }
    
    public String getCreateId() {
        return this.createId;
    }
    
    public String getType() {
        return this.type;
    }
    
    public String getGroupId() {
        return this.groupId;
    }
    
    public String getName() {
        return this.name;
    }
    
    public String getUrl() {
        return this.url;
    }
    
    public void setId(final String id) {
        this.id = id;
    }
    
    public void setCreateTime(final Date createTime) {
        this.createTime = createTime;
    }
    
    public void setCreateId(final String createId) {
        this.createId = createId;
    }
    
    public void setType(final String type) {
        this.type = type;
    }
    
    public void setGroupId(final String groupId) {
        this.groupId = groupId;
    }
    
    public void setName(final String name) {
        this.name = name;
    }
    
    public void setUrl(final String url) {
        this.url = url;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof MaterialDto)) {
            return false;
        }
        final MaterialDto other = (MaterialDto)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$id = this.getId();
        final Object other$id = other.getId();
        Label_0065: {
            if (this$id == null) {
                if (other$id == null) {
                    break Label_0065;
                }
            }
            else if (this$id.equals(other$id)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$createTime = this.getCreateTime();
        final Object other$createTime = other.getCreateTime();
        Label_0102: {
            if (this$createTime == null) {
                if (other$createTime == null) {
                    break Label_0102;
                }
            }
            else if (this$createTime.equals(other$createTime)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$createId = this.getCreateId();
        final Object other$createId = other.getCreateId();
        Label_0139: {
            if (this$createId == null) {
                if (other$createId == null) {
                    break Label_0139;
                }
            }
            else if (this$createId.equals(other$createId)) {
                break Label_0139;
            }
            return false;
        }
        final Object this$type = this.getType();
        final Object other$type = other.getType();
        Label_0176: {
            if (this$type == null) {
                if (other$type == null) {
                    break Label_0176;
                }
            }
            else if (this$type.equals(other$type)) {
                break Label_0176;
            }
            return false;
        }
        final Object this$groupId = this.getGroupId();
        final Object other$groupId = other.getGroupId();
        Label_0213: {
            if (this$groupId == null) {
                if (other$groupId == null) {
                    break Label_0213;
                }
            }
            else if (this$groupId.equals(other$groupId)) {
                break Label_0213;
            }
            return false;
        }
        final Object this$name = this.getName();
        final Object other$name = other.getName();
        Label_0250: {
            if (this$name == null) {
                if (other$name == null) {
                    break Label_0250;
                }
            }
            else if (this$name.equals(other$name)) {
                break Label_0250;
            }
            return false;
        }
        final Object this$url = this.getUrl();
        final Object other$url = other.getUrl();
        if (this$url == null) {
            if (other$url == null) {
                return true;
            }
        }
        else if (this$url.equals(other$url)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof MaterialDto;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $id = this.getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        final Object $createTime = this.getCreateTime();
        result = result * 59 + (($createTime == null) ? 43 : $createTime.hashCode());
        final Object $createId = this.getCreateId();
        result = result * 59 + (($createId == null) ? 43 : $createId.hashCode());
        final Object $type = this.getType();
        result = result * 59 + (($type == null) ? 43 : $type.hashCode());
        final Object $groupId = this.getGroupId();
        result = result * 59 + (($groupId == null) ? 43 : $groupId.hashCode());
        final Object $name = this.getName();
        result = result * 59 + (($name == null) ? 43 : $name.hashCode());
        final Object $url = this.getUrl();
        result = result * 59 + (($url == null) ? 43 : $url.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "MaterialDto(id=" + this.getId() + ", createTime=" + this.getCreateTime() + ", createId=" + this.getCreateId() + ", type=" + this.getType() + ", groupId=" + this.getGroupId() + ", name=" + this.getName() + ", url=" + this.getUrl() + ")";
    }
}
